package src;

/**
 * Created by dell on 2017/7/27.
 */
public class ArrayCopyTest {
    public static void main(String[] args) {
        int[] source=new int[]{10,20,30,40,50};
        int[] target=new int[5];
        System.out.println("Before copy is :");
        for(int i:target){
            System.out.println(i);
        }
        System.arraycopy(source,2,target,1,3);
        System.out.println("After copy is:");
        for (int i:target){
            System.out.println(i);
        }
    }
}
